package com.linked.goods.goodsbase.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.linked.goods.goodsbase.bean.dto.GoodsVersionDTO;
import com.linked.goods.goodsbase.bean.param.GoodsQueryParam;
import com.linked.goods.goodsbase.bean.view.GoodsQueryView;
import com.linked.universal.bean.goods.goods.LinkedGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :dbq
 * @date : 2023/5/25 11:02
 * @description : desc
 */
@Mapper
public interface IGoodsQueryMapper extends BaseMapper<GoodsQueryView> {

    IPage<GoodsQueryView> queryGoodsPage(@Param("param") GoodsQueryParam param);

    List<GoodsVersionDTO> queryGoodsVersionList(@Param("goodsId") String goodsId);

    LinkedGoods queryLinkedGoods(@Param("goodVersionId") String goodVersionId);
}
